package org.jazz.util;

import org.apache.log4j.Logger;
import org.jazz.board.dao.BbsAbstractExecutor;
import org.jazz.board.BoardVO;


public class EmpTest {
	public static void main(String[] args) throws Throwable{
		final Logger logger = Logger.getLogger(EmpTest.class);
		new org.jazz.board.dao.BbsAbstractExecutor(){
			@Override
			public void execute() throws Exception {
				StringBuilder sql = new StringBuilder();
				sql.append(" SELECT * ");
				sql.append(" from TBL_BOARD_DESC ");
				sql.append(" where ROWNUM = 1 ");

				
				pstmt = conn.prepareStatement(sql.toString());
				rs = pstmt.executeQuery();
				
				try {
					BoardVO vo  = (BoardVO)BeanGenerator.getBean(rs, "org.ddr.board.BbsVO");
					System.out.println(vo);
				} catch (Throwable e) {
					e.printStackTrace();
					throw new Exception(e.getMessage());
				}
			}
		}.doJob();
	}
}
